<html>
<head>
    <meta charset="utf-8">
    <script type="text/javascript">

function javaToJS(){
     document.getElementById("content").innerHTML =
         "<br\>JAVA调用了JS的无参函数";
}

function javaToJsWith(arg){
     <!--document.getElementById("content").innerHTML =-->
         <!--("<br\>"+arg);-->
         document.location=arg;
}
</script>
</head>
<body>
以下为html内容<br/>
<h1><div id="content">显示一条文本</div></h1>
<br/>
<a onclick="alert('112233')">111</a>
<input type="button"  value="调用java代码，且无参" οnclick="alert(调用java代码，且无参)" />
<br/>
<input type="button"  value="调用java代码，且有参" οnclick="window.java.parameterFunction('JS->android 有参成功')"/>
</body>
</html>
